package test00.tx02.demo01;

public class MainTest {
    public static void main(String[] args) {
        Runnable runnable = new MyRunnable();
            for (int i = 0; i < 10; i++) {
                runnable.run();
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
            }
    }
}
